
<!-- saved from url=(0055)http://python.itcarlow.ie/ed2/ch05/templates/entry.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></head>

<body background="/static/1111.jpg">
<background-size:cover>
{% extends 'base.html' %}

{% block body %}

<h2>{{ the_title }}</h2>
<form action="/findbook" method="POST">
<table>
<tr>
<p>请选择图书的类别：<input type="text" list="gender_list" name="student_gender" /></p>
<datalist id="gender_list">
 <option value="人文科学" />
 <option value="社会科学" />
</datalist>
</tr>


<tr>
 <p><input type="submit" value="筛选" /></p>
</tr>
 </table>

</form>

<table width="800">
	<tr>
		{% for item in student_title %}
		<td>{{ item }}</td>
		{% endfor %}
		<td>删除图书</td>
		<td>修改图书信息</td>
	</tr>

    {% for row in student_table %}

	<tr>
		{% for i in row %}
		<td>{{ i }}</td>
		{% endfor %}
		<td>
			<form method="POST" action="/deletestudent">
			<button type="submit" name="deleteitem" value={{ row[0] }}>删除</button>
			</form>
        </td>
        <td>
			<form method="POST" action="/xiugaibook">
			<button type="submit" name="additem" value={{ row[0] }}>修改</button>
			</form>

		</td>
	</tr>
	
	{% endfor %}
</table>

<form action="/addbook">
	<p><button type="submit">添加新的图书信息</button></p>
</form>
{% endblock %}
</body></html>